package day03;

public class OperDemo6 {
    public static void main(String[] args){
        int num = 8;
        int flag = num>0?1:-1;
        System.out.println(flag);

        /*int a = 8,b = 8;
        int max = a>b?a:b;
        System.out.println(max);*/

        int a = 5,b = 8;
        int max = b>a?b:a;
        System.out.println(max);

    }
}
